//
//  FoodMainTableViewCell.m
//  ArtOfLiving
//
//  Created by xalo on 16/4/29.
//  Copyright © 2016年 刘虎. All rights reserved.
//

#import "FoodMainTableViewCell.h"
#import "FoodMainModel.h"

@interface FoodMainTableViewCell ()

@property (strong, nonatomic) IBOutlet UIImageView *foodLabelImageView;

@end

@implementation FoodMainTableViewCell

- (void)setCellWithModel:(id)model{
    
    FoodMainModel *foodMainModel = model;
    SDWebImageOptions options = SDWebImageRetryFailed |SDWebImageLowPriority;
    [self.foodLabelImageView sd_setImageWithURL:[NSURL URLWithString:foodMainModel.img] placeholderImage:[UIImage imageNamed:@"foodPlaceholder.png"] options:options];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
